package com.situ.mall.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.situ.mall.VO.CategoryCountVO;
import com.situ.mall.common.ServerResponse;
import com.situ.mall.mapper.CategoryMapper;
import com.situ.mall.service.IEchartsService;

@Service
public class EchartsServiceImpl implements IEchartsService {

	@Autowired
	private CategoryMapper categoryMapper;
	@Override
	public ServerResponse getCategoryCount() {
		List<CategoryCountVO> list = categoryMapper.getCategoryCount();
		return ServerResponse.createSuccess("成功", list);
	}
	
}
